package jprint.base;

import java.awt.Point;
import java.io.File;
import jprint.base.http.Http;

/**
 * @author zw-zheng
 * Created on 2020-11-22
 */
public interface AppContext {

    File getAppHome();

    File getWebRoot();

    void setServer(Http.HttpServer server);

    int getPrinterDPI();

    void setPrinterDPI(int printerDPI);

    int getPaperWidth();

    void setPaperWidth(int paperWidth);

    int getPaperHeight();

    void setPaperHeight(int paperHeight);

    double getScale();

    void setScale(double scale);

    void setOffset(int x, int y);

    Point getOffset();

    void exit();
}
